package com.santoker.user.service.dto.vo.auth;

import com.santoker.user.service.dto.vo.AbstractVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class WxBindVo extends AbstractVo {

    @NotNull(message = "微信openid")
    @ApiModelProperty(value = "微信openid", required = true)
    private String openid;

    @NotNull(message = "账号类型不能为空")
    @Range(min = 1, max = 3, message = "账号类型不正确")
    @ApiModelProperty(value = "账号类型：1国内手机号，2国际手机号，3邮箱", required = true)
    private Integer accountType;

    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "账号：注册时手机号/邮箱", required = true)
    private String account;

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String captcha;

    @NotNull(message = "设备id不能为空")
    @ApiModelProperty(value = "设备id", required = true)
    private String sid;

    @NotNull(message = "设备标识码不能为空")
    @ApiModelProperty(value = "设备标识码", required = true)
    private String cid;

}
